﻿<MudText>SelectedItems { @string.Join(", ", _selectedItems) }</MudText>
<MudTable Items="_items" @bind-SelectedItems="_selectedItems" MultiSelection="true">
    <HeaderContent>
        <MudTh>#</MudTh>
    </HeaderContent>
    <RowTemplate>
        <MudTd>@context</MudTd>
    </RowTemplate>
</MudTable>

@code {
    public static string __description__ = "The checkboxes should all be checked on load, even the header checkbox.";

    private readonly int[] _items = [0, 1, 2];
    private HashSet<int> _selectedItems = [0, 1, 2];
}
